package com.ruoyi.tea.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 茶叶信息对象 tea_leaf
 * 
 * @author hmx
 * @date 2023-03-15
 */
public class TeaLeaf extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long leafId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String leafName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String leafCode;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long factoryId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long price;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long num;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long bid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long views;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long pvo;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long leafType;

    public TeaFactory getTeaFactory() {
        return teaFactory;
    }

    public void setTeaFactory(TeaFactory teaFactory) {
        this.teaFactory = teaFactory;
    }

    private TeaFactory teaFactory;

    public void setLeafId(Long leafId) 
    {
        this.leafId = leafId;
    }

    public Long getLeafId() 
    {
        return leafId;
    }
    public void setLeafName(String leafName) 
    {
        this.leafName = leafName;
    }

    public String getLeafName() 
    {
        return leafName;
    }
    public void setLeafCode(String leafCode) 
    {
        this.leafCode = leafCode;
    }

    public String getLeafCode() 
    {
        return leafCode;
    }
    public void setFactoryId(Long factoryId) 
    {
        this.factoryId = factoryId;
    }

    public Long getFactoryId() 
    {
        return factoryId;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setBid(Long bid) 
    {
        this.bid = bid;
    }

    public Long getBid() 
    {
        return bid;
    }
    public void setViews(Long views) 
    {
        this.views = views;
    }

    public Long getViews() 
    {
        return views;
    }
    public void setPvo(Long pvo) 
    {
        this.pvo = pvo;
    }

    public Long getPvo() 
    {
        return pvo;
    }
    public void setLeafType(Long leafType) 
    {
        this.leafType = leafType;
    }

    public Long getLeafType() 
    {
        return leafType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("leafId", getLeafId())
            .append("leafName", getLeafName())
            .append("leafCode", getLeafCode())
            .append("factoryId", getFactoryId())
            .append("price", getPrice())
            .append("num", getNum())
            .append("bid", getBid())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("views", getViews())
            .append("pvo", getPvo())
            .append("leafType", getLeafType())
            .append("teaFactory",getTeaFactory())
            .toString();
    }
}
